package org.projectwithoutname.application.perspectives;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.projectwithoutname.ui.pages.MainPage;
import org.projectwithoutname.ui.view.SuperView;

public class Perspective implements IPerspectiveFactory {

	/**
	 * The ID of the perspective as specified in the extension.
	 */
	public static final String ID = "org.ProjectWithoutName.application.perspective";
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		
		layout.addStandaloneView(MainPage.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
		layout.getViewLayout(MainPage.ID).setCloseable(false);
	}
}
